package com.czxy.service;

import com.czxy.pojo.TAnswer;
import com.czxy.vo.AnswerVo;

/**
 * @author likk
 * @create 2018/9/5
 */
public interface AnswerService {

    /**
     * 提交答案
     *
     * @param answer
     */
    public void insert(TAnswer answer);

    /**
     * 查询答题结果
     *
     * @param questionId 题目id
     * @param studentId 学生id，关联用户表
     * @return
     */
    public TAnswer findAnswer(Integer questionId, Integer studentId);

    /**
     * 阅卷
     * @param answer
     */
    public void readOver(AnswerVo answerVo, Integer userId);
}
